package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysWxOperateRecordMapper;
import com.ruoyi.system.domain.SysWxOperateRecord;
import com.ruoyi.system.service.ISysWxOperateRecordService;

/**
 * wx操作状态记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-27
 */
@Service
public class SysWxOperateRecordServiceImpl implements ISysWxOperateRecordService 
{
    @Autowired
    private SysWxOperateRecordMapper sysWxOperateRecordMapper;

    /**
     * 查询wx操作状态记录
     * 
     * @param id wx操作状态记录主键
     * @return wx操作状态记录
     */
    @Override
    public SysWxOperateRecord selectSysWxOperateRecordById(Long id)
    {
        return sysWxOperateRecordMapper.selectSysWxOperateRecordById(id);
    }

    /**
     * 查询wx操作状态记录列表
     * 
     * @param sysWxOperateRecord wx操作状态记录
     * @return wx操作状态记录
     */
    @Override
    public List<SysWxOperateRecord> selectSysWxOperateRecordList(SysWxOperateRecord sysWxOperateRecord)
    {
        return sysWxOperateRecordMapper.selectSysWxOperateRecordList(sysWxOperateRecord);
    }

    /**
     * 新增wx操作状态记录
     * 
     * @param sysWxOperateRecord wx操作状态记录
     * @return 结果
     */
    @Override
    public int insertSysWxOperateRecord(SysWxOperateRecord sysWxOperateRecord)
    {
        sysWxOperateRecord.setCreateTime(DateUtils.getNowDate());
        return sysWxOperateRecordMapper.insertSysWxOperateRecord(sysWxOperateRecord);
    }

    /**
     * 修改wx操作状态记录
     * 
     * @param sysWxOperateRecord wx操作状态记录
     * @return 结果
     */
    @Override
    public int updateSysWxOperateRecord(SysWxOperateRecord sysWxOperateRecord)
    {
        sysWxOperateRecord.setUpdateTime(DateUtils.getNowDate());
        return sysWxOperateRecordMapper.updateSysWxOperateRecord(sysWxOperateRecord);
    }

    /**
     * 批量删除wx操作状态记录
     * 
     * @param ids 需要删除的wx操作状态记录主键
     * @return 结果
     */
    @Override
    public int deleteSysWxOperateRecordByIds(Long[] ids)
    {
        return sysWxOperateRecordMapper.deleteSysWxOperateRecordByIds(ids);
    }

    /**
     * 删除wx操作状态记录信息
     * 
     * @param id wx操作状态记录主键
     * @return 结果
     */
    @Override
    public int deleteSysWxOperateRecordById(Long id)
    {
        return sysWxOperateRecordMapper.deleteSysWxOperateRecordById(id);
    }
}
